﻿@model sorochinska_kl.Models.AddUserToRole
@{
    ViewBag.Title = "AddUserToRole";
        
}

<h2>AddUserRole</h2>


@using (Html.BeginForm()) { 
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>AddUserToRole</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserId)
        </div>
        <div class="editor-field">
            @Html.DropDownList("UserID", String.Empty)
        </div>

     <div class="editor-label">
         @Html.LabelFor(model => model.RoleId)
     </div>
        <div class="editor-field">
            @Html.DropDownList("RoleID", String.Empty)
        </div>

        <p>
            <input type="submit" value="Add Role to User" />
        </p>
    </fieldset>
}
